import java.util.Calendar;
import java.util.GregorianCalendar;

/**
 * Created with IntelliJ IDEA.
 * Description: JavaAPI实验四代码
 */
public class Test4 {
    public static void main(String[] args) {
        Calendar calendar = Calendar.getInstance();
        calendar.set(2017,6,25);
        calendar.add(Calendar.DATE, 180);
        int year = calendar.get(Calendar.YEAR);
        int month = calendar.get(Calendar.MONTH) + 1;
        int day = calendar.get(Calendar.DATE);
        System.out.println("竣工日期为：" + year + "年" + month + "月" + day + "日");
    }
}
